/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.LoaiPhongBLL;
import edu.nii.qlks.DataTransferObject.LoaiPhongInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class LoaiPhongControl {
    
    LoaiPhongBLL LoaiPhong = new LoaiPhongBLL();
    
    public ArrayList LayDS(String Condition) throws Exception{
        return LoaiPhong.LayDS(Condition);
    }
 
    public ArrayList LayDS() throws Exception{
        return LoaiPhong.LayDS();
    }
        
    public void Insert(LoaiPhongInfo loaiPhongInfo) throws Exception{
        LoaiPhong.Insert(loaiPhongInfo);
    }
    
    public void Update(LoaiPhongInfo loaiPhongInfo) throws Exception{
        LoaiPhong.Update(loaiPhongInfo);
    }
    
    public void Delete(LoaiPhongInfo loaiPhongInfo) throws Exception{
        LoaiPhong.Delete(loaiPhongInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
         return LoaiPhong.TaoMaTuDong(maGoc, batDau);
     }
    
    public ArrayList LayDS_LoaiPhong() throws Exception{
        return LoaiPhong.LayDS_LoaiPhong();
    }
    
    public String[] LayMaLoaiPhong() throws Exception{
        return LoaiPhong.LayMaLoaiPhong();
    }
    
    public String[] LayTenLoaiPhong() throws Exception{
        return LoaiPhong.LayTenLoaiPhong();
    }
}
